package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Set;

public interface IPermissionService {

        int deleteByPrimaryKey(Long id);

        int insert(Permission record);

        Permission selectByPrimaryKey(Long id);

        List<Permission> selectAll();

        int updateByPrimaryKey(Permission record);

        PageResult query(QueryObject qo);

        //加载权限
        void reload();


        List<Permission> queryPermissionByRoleId(Long roleId);


        List<String> queryPermissionResourceByEmpId(Long id);


}
